# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=icinga-php-library
pkgver=0.9.1
pkgrel=0
pkgdesc="Bundle for all Icinga PHP libraries"
url="https://github.com/Icinga/icinga-php-library"
arch="noarch !armhf !armv7 !s390x !x86"
license="MIT"
options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Icinga/icinga-php-library/archive/refs/tags/v$pkgver.tar.gz"

build() {
	return 0
}

package() {
	install -dm755 "$pkgdir"/usr/share/icinga-php
	cp -rT . "$pkgdir"/usr/share/icinga-php/ipl
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
63e64eb3a50636f10a1b21037a4928584686a15b137f8655f0f158cb3877cb0d0481bd0c637f44016ab039a6767d4828b65025d4bcd3f7f8057644544099f0b8  icinga-php-library-0.9.1.tar.gz
"
